<?php
	function open_cnn(){
		$host="localhost";
        $name="root";
        $pass="";
        $database="tuxa2";
		$conn=mysql_connect($host,$name,$pass) or die("khong ket noi dc");
		mysql_select_db($database,$conn) or die("khong lay dc CSDL");  
		date_default_timezone_set('Asia/Ho_Chi_Minh');
        mysql_query("SET NAMES 'UTF8'");
	}
    
	function close_cnn(){
	    
	}
?>